﻿using UnityEngine;
using Util;

public class DeathLineTrigger : MonoBehaviour
{

    private void OnTriggerEnter2D(Collider2D collision)
    {
        if (Utils.IsPlayer(collision))
        {
            GameManager.Instance.PlayerGameObject.GetComponent<PlayerController>().Death(0, 0.2f);
        }
    }

}
